[minor] fix unbound local var in file_manager