Fixed Hook add()

If hook folder does not exist then create one.