Hook improvements

Make install idempotent.

Install into known directory rather than current directory.