upstream'd the pattern for making executable jars.