Refactored test.
Incorporated better OS detection.

http://stackoverflow.com/questions/19847594/how-to-reliably-detect-os-pl
atform-in-go