Verify hook directory exists.

Adds a check that the hook directory actually exists before attempting to
process the scripts in it.  This can occur if a hook is specified to run on a
set of elements, yet none of those elements (or their deps) define any scripts
for that hook.