Use shlex for config file parsing.

It works for quoted string arguments even if they have spaces or hash symbols; the current code doesn't.  It's also more concise.
We generally like to have our imports listed in alphabetical order, so please put `shlex` before `sys`.