Make os.platform more portable.

Yeah I can't even rely on tr working properly.