Use the new environment variables in all the commands
Since the gitlab version 9.0, some (if not all) the default environment variables were renamed, here are some of the env vars that were renamed and how they are named now, we have to look for all the variables that were renamed and fix them to avoid errors like this: