Add check for non-existant hooks dir, and create if missing

Let me know if I need to make any changes to conform to some contributing standards, but in our environment we were having issues creating forks for some projects and this one line of code fixed it.

The /hooks/ dir was missing so trying to symlink to /hooks/update was throwing and error.

It seems (to me) that it would be a harmless change for the most part.