Fix upward directory traversing if no repository is found
Merge pull request #4 from sebastian-software/fix/no-repository

Fix upward directory traversing if no repository is found