simpler isJar/isArchive
only strip trailing dollar in classname