make sure directories reside on the same device