Check in advance for possible directory collisions.