Use gitlab-ci predefined environmental variables
Because && cd -
might not be executed if the cmake fails, there could be used env vars to get into the directory
Because && cd -
might not be executed if the cmake fails, there could be used env vars to get into the directory