chore: improve handling of getting the path to the folder of the code coverage reports in grunt cover