add .directory only where needed
change gitignore to not filter .directory only where needed for templates