Fix issue with loading from incorrect directory.

Fix incorrect main class for 1.7 versions
Add abit more debug to startup.