Use uname -s which works everywhere

Use uname -s instead of uname -o, which is not present on some operating systems.

This should be tested on Cygwin.