Detecting possible file collisions