rmdup: make usage appear on stdout and clean up

Make usage message appear on stdout when invoked with no arguments.
Clean up argument parsing code.