Add function to check whether two directories are on the same partition