Split out get-classified-jar-filename. Fixes #1039.