Fixed bug when reading config file from environment variable