Use 'os._name' Instead of Invoking Java

os.name is 'nt' on Windows, and 'posix' in OS X and Linux. Fortunately
Jython included 'os._name' although it is missing a sys.platform
alternative.