Fixing log directory for hook scripts