Don't use /sbin/losetup to test for '-r' option when the scripts just use "lostup"