Scenario 1: Environment is defined via --env or NODE_ENV
* config is config[environment]
Scenario 2: Environment is undefined but config.development is an object
* config is config.development
Scenario 3: No environment and no config.development
* config is config
Also logs out the environment in use for scenarios 1 and 2
If one tries to do a "knex init" prior to having added the knex module locally to ones project, then one previously didn't get a warning – just a confusing error about a file not being found. Now an error is shown instead.