Workaround for a bug in kpartx, which fails to delete the loop device when using very long file names.