Ensure proper line endings for hooks