fix script for dumping variable descriptions
The current version of gitlab runners somehow don't identify as docker or singularity environments, therefore the variable dumping scripts fail. This merge request deploys a quick fix for this by checking for the environment variable of gitlab.