Fixes hook permissions and corrections to bootstrap script