add preinstall hooks, so it can be installed via git