[NEXUS-6628] Canoniclalize tmp files (and dirs).