fixes for templates, services and directories when doing install from repo