Fix allowing file renames on Windows too