fix unmount issue in Mac OS X

fixed the Mac OS X unmount ramdisk issue