Better debugging

* Start debugging as early as possible
* Always print version if run with debugging or verbose enabled