[Distutils] Rewritten 'get_platform()'