Fix "kpm pack" paths with dots excluding all content files

- Add functional tests to avoid regression
- Add test covering .git auto glob