Fix error when hooks files/dir doesn't exist [Fix #34]