OS detection for SED's sake (FreeBSD vs Linux)

This _should_ work for MacOS/FreeBSD and Linux systems
Please feel free to make it better.. 
I've tried using aliases, but it didn't work reliably..