Fix install-data-hook so it works correctly when installing to a
non-standard location.