Bug-fix when trawling a repository sub-directory