Config file defaults

Improved the default config file handling. Use user-defined config file or production or development config.