Updated git hook with correct permissions too