Fix support for configs without rootPath specified

Fall back to the old behaviour including process.cwd() usage