Perhaps my original change was incorrect in that Which.jarFile() finds a directory if the class file is in a directory?