Improves template build scripts