Allow {pre,post}-up hook directories

If the `pre-up` or `post-up` files are actually directories, run the
executable contents of them in an arbitrary order.