Fix temporary file bug when saving modified footprints. (fixes lp:1384550)

* Use wxRenameFile which falls back to a file copy and file remove when
  wxRename fails.