Moved the loading of env from a rc file to top

This was done last so confs where not visible and where
overriding command line parameters