fixed file name check while saving files