process cwd fixes