Fixed up the template script so that it now creates a new app cleanly