Add detach code

Turns out you can detach a DMG using the mount point.