Fix check for losetup version

Before, the test always evaluated to true and kpartx was used. Now, the test actually depends on the value of `losetup_lt_2_22`.