add new function to generate the human readable version string based on version, channel and build number
remove logic from template and fix syntax error