fixes to deal with multiple JARs for a given artifact dir (a la compiler-interface)