Fix issue 30, --install in empty repo

Check for the existence of hooks, before moving it. The issue occurs in an
empty repo without any pre-existing hooks.

Change-UUID: 7a1d6a1560ab46bea4387be534e70354