Made detecting if zpool is already mounted or unmounted better