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. This appeared to be the simplest fix.

I ran into this issue using child modules and the parent module has no code and therefore no coverage file.