Correctly handle non-existing files.