Restore execution chmod on hooks