Changed file structure of pre-commit hooks so it can be used as a template directory.