Rewrote the logic to avoid unmapped reads bailing out early, negating
the (undocumented) -q and -d options.