diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8e56328e48518eb58aa20614d3940f352075c026..c0afb7899b9d638198bb4d8b9e7a7a2070715027 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -29,11 +29,11 @@
         - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
         - chmod +x ./rustup.sh
         - ./rustup.sh -y --default-toolchain beta
-        - source ~/.cargo/env
+        - source $HOME/.cargo/env
     script:
-        - ~/.cargo/bin/cargo build --manifest-path src/rust/liblektor-rs/Cargo.toml
-        - ~/.cargo/bin/cargo build --manifest-path src/rust/amadeus-rs/Cargo.toml
-        - cmake -Bbuild -DCMAKE_RUST_COMPILER=~/.cargo/bin/cargo -DCMAKE_C_COMPILER=${c_compiler} -DCMAKE_CXX_COMPILER=${cxx_compiler} && make -Cbuild
+        - $HOME/.cargo/bin/cargo build --manifest-path src/rust/liblektor-rs/Cargo.toml
+        - $HOME/.cargo/bin/cargo build --manifest-path src/rust/amadeus-rs/Cargo.toml
+        - cmake -Bbuild -DCMAKE_RUST_COMPILER=$HOME/.cargo/bin/cargo -DCMAKE_C_COMPILER=${c_compiler} -DCMAKE_CXX_COMPILER=${cxx_compiler} && make -Cbuild
 
 variables:
     GIT_DEPTH: 3 # No need to clone all the history