Restore CWD_IN_ROOT_PATH and CWD_IN_ROOT_PATH