create history data directories for renamed files before spawning the threads
fixes #775
missing space in exception message
Merge pull request #776 from vladak/mkdir_races

create history data directories for renamed files before spawning the th...