fixed release/debug detection, added some more info to debug-mode VERSION