Fix check for filename existence

Store unnormalized names