Correctly checks to see if Jython is embedded

It's weird workaround, but hey, it works.