fix(config): ensure basePath is always resolved

Slight addition to the commit https://github.com/karma-runner/karma/commit/98724b6ef5a6ba60d487e7b774056832c6ca9d8c for issue https://github.com/karma-runner/karma/issues/447 to make sure the base path is always resolved.