Added which utility to find pre-installed version of jpegtran

Also genericized the method for using which or constructing a path to the precompiled binary.