Fix imports for the JVM plugin

The JVM plugin failed to import ``shutil`` so I've added that.

Furthermore, ``sys`` wasn't needed so I removed it.