detection of system (Linux/Darwin). proper detection of mounted snapshots prior to umount.

detection of system applies for local and remote operations. should run
on linux and macosx with no modifications in the code.
error return codes renumbering, parameter checking for --send