Auto-complete support - (minus) in process names

If a process name contained a - (for example: this-process-has-minuses), the auto-complete in the client had trouble with it.

I fixed that, and made the auto-complete faster and a bit simpler.