MacOSX: safer uninstall_cmd