Fix wm detection (#133)

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