Got regex for setting the cwd fixed.