store version info in env.version, and display version number in default template output (#321)