small reformating and paths caching to scan recursive for git repositories