fix file_exists(filename)