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.