I was mislead by `makePathInTemp` which actually just generates a valid path, without creating the file.