Small bugfix for loading environment variables