Merge pull request #155 from neuschaefer/dev

Various patches, please review
Fix wm detection (#133)

The problem was that pgrep searches for any process names that contain the
specified string, instead of exact matches.