Added logic to depthCheckingFilesystemWalk() to avoid visiting .git and __pycache__ directories