update hook script (remove windows line breaks)