Fix wm detection (#133)

The problem was that pgrep searches for any process names that contain the
specified string, instead of exact matches.
Merge pull request #156 from neuschaefer/dev

Fix wm detection (#133)