fixed a couple indentation/reference bugs and added sys.exit if wmctrl
is not found