refactor with ow.uname check for Windows

Check if os.uname exists before calling it. Enables use on Windows