Check file existence instead of directory