Fixed Java platform detection in IPython.utils.process.