fix the file exists tester