saveToJar: handle classes stored in jars and classes with no package