Updated build script to use template in package