Prevented exceptions on non-Mac OS X platforms

Fixed the version error and also prevented the exception from being thrown on non-Mac OSX platforms. This was screwing up guard notifications on Linux in cross platform projects.
Merge pull request #113 from aspinall/master

Prevented exceptions on non-Mac OS X platforms