Fix for people without the environment variable GAUSS_EXEDIR set

os.getenv('UNDEFINED') returns None, which is not a string,
which messes things up later.