Add OS checks so OSX-only scripts exit on non-Darwin systems