Fix trim if log dir is in ramdisk