revert to `cwd` lib