Add check for supported OS

Hoping to fix issue #5, but so far untested

I think I've covered the more important methods, but you might know better.