integrating build folder template copy in a rather grotty way