Adding '--version' and exit on invalid option. fix #413

If a user pass in an option that is not defined in `defaultConfig` object within `config.js`, then exit with an warning.
JSHint doesn't like the fact that `key` is a global variable here.