Fix error when hooks files/dirs don't exist

We had been relying on `hooks/pre-up` and `hooks/post-up` files to
exist. This explicitly checks first.

Fixes #34.