Fix bug preventing clean unmounting of rootfs