Added *pre-rebuild* hook