Setting executable bit on hooks