A little bit of platform independence.

Check $OSTYPE for the things that were breaking for me.