support `cwd` directive