Get the environment variable in a way that works with gaenose