Check if partitions are mounted before unmounting them.

* Check if partitions are mounted before unmounting them.
* Make sure /proc/sys/fs/binfmt_misc is unmounted. Fixes #22