Correctly handle logging in destination directory when destination is a subdirectory of working directory

Closes #121