Fix problems caused by variable id length
Stop error messages on systems without xdotool
Merge pull request #3 from airminer/master

Fixed failing to delay on some systems and displaying unnecessarry error messages on others.