Fix logging in destination directory