Fixed core to work with build tool
Output version to console on debug mode