Add cwd support.