Chagne os.type() to return lowercase strings like 'linux', 'darwin'

Please see discussion in the issue #302