It has to be $path, because correcFolder() needs to be able to cross over mount points.