Simpler check for dmenu without actually calling it

This features a simpler check for dmenu that doesn't actually call it.

Please note however that this breaks compatibility with Python 2, as shutil.which has only been added in Python 3.3, so you'll have to decide on whether you want to keep that backwards compatibility.