Fix bug of missing config folder for a hook

Create folder first before copy.

Change-Id: I08611fe95e6e7fae1d10e673cbdf0a9de53fb68a
Merge "Fix bug of missing config folder for a hook"