close #367

@edani's fix to close #377

simpler isJar/isArchive

only strip trailing dollar in classname
Merge pull request #376 from fommil/source_jars

Fix reference sources in jars and zips