Don't let the vcs detection cross mount point boundaries

Fixes issue 625