Properly check for non-existant paths before skipping them.