Hooks: fixed problem with file name case

Sorry, this didn't pop on my Mac :/