Fixing File::exists function