safer rename/move - issue #51

- new internal function nm_rename_file(): tries to rename, if fails then
copy + unlink
- replace rename() calls (delete/save/restore post)