fixed environment loading for nconf