Rework argument parsing

Switch to xargs + sed and ensure that -Xfoo and -X foo are treated
the same.

Fixes #18