Better command line parsing.

Allow quoting arguments and escaping quotes.
Fixes problem with for example gnome-terminal.