Revert "fixed build hook"

This reverts commit dcb4b11928618800cb930033d29bd367c159dcbd.