Also consider quotes in command line arguments correctly.

For this move command line utilities into core.