fix MGR_DIR for docmanager