Use os.uname over running the uname command

Fixes #30, #28
Merge pull request #30 from joshuarh/os-uname

Use os.uname over running the uname command