NEXUS-6537: IOEx is not cheap, hence avoiding to be thrown

Preemptively checking for file existence, to save one
IOEx and redoing stuff.