patch from James Delahanty <jimd@gie.com> to make --backup-dir work