Allow empty subdirs

If there is no file, there is nothing to git add.  In practice there is no file when the subdir was otherwise empty.
Update pre-commit

Missing "git" command
Merge pull request #6 from atz/patch-1

Allow empty subdirs