Made build process better (I think) and templatized the version number (losing git tags in the process)