fix bug: hooks can not be copied into denstiny directory