Improve debug information

Shows proper version number in the log file (CommonFunctions). Makes debugging easier.