trim off unnecessary jars in path for conversion