Add warning if hook install directory does not exist.

Use assertSame rather than assertEquals where possible.