Fixed Hook add()

If hook folder does not exist then create one.
Merge pull request #169 from marcelometal/hooks

Fixed Hook add()