Refactor gitignore file to reenable templates directory