[kpartx] remove bashisms from kpartx_id