work_queue: add find_executable function and use it to find gzip

This allows the example to work on Ubuntu where gzip is in /bin rather than
/usr/bin.