Update worker state to none after we send a reset message.
wait did not like being replaced with waitpid.

Even though wait(s) is functionally equivalent to waitpid(-1, s, 0), when
wrapped like that in the monitor helper we got ECHILD. This commit wraps wait
directly.
Fixes pathname location of helper library.

Sometimes LD_CONFIG would get the library path as a relative path. This
did not work so well when grandchildren processes changed directories.
This commit makes the path absolute.
wait and waitpid were fine. muggins wasn't.

Simplify the wrapping of wait by using waitpid (again). On further
inspection, it was an incorrect pid being returned from the waitpid
wrapper that caused errors. This commit (re)-simplifies the code.
Return failure before applying cvmfs_open on a directory path.

If a path refered to a directory, cvmfs lookup tagged the path as correct, but
cvmfs_open would fail with errors "failed to fetch", and "failed to open".
These errors slowed down parrot greatly. Now we check whether lookup tagged the
path as directory, and if so, immediatly return failure to open the path as a
regular file.
Replaces let with sh arithmetic in ec2_submit_workers
Check for possible failure of perl configuration if ExtUtils::Embed
is not present.  This fixes the build on BlueGene/Q.
Merge branch 'master' of github.com:cooperative-computing-lab/cctools