Changed dataDir to a string to prevent throw

If dataDir is a File then it throws before the .exists() check takes
place, which means that any modules without a coverage file causes the
build to fail.