Fix invalid file existence call