Minor, picky, alignment.
Some `getopts` and logic fixes. Added one test case for config only mode.

* `getopt` was ignoring `-C`.
* Fixed some logic which should stop execution in some cases(regarding the config only mode execution)
* Added a test case to test if script execution stops if config mode is enabled and no config dir is provided.