Catch exception when APPNAME and VERSION are not defined in top wscript.
Corrected offset of line numbers in cppcheck reports.