properly handle config files and switching on/off dev_mode

Fixes https://github.com/erlware/relx/issues/97