Add -B option to specify backup filename suffix.
Improve handling of file errors.