Fix build script to correctly insert version number.