Fixing relative path of the target directory

Wrong classmaps were generated because the classmap target file and
the directory to be crawled were uncomparable.