Added a check for whether the user is using a Mac. Also detects which package manager you are using.
Added some commenting.
Added the fallback if you can't find a package manager.
Merge pull request #5 from calvcoll/master

Updates to xdotool check