use os.uname over running the uname command

This should fix #28