Fix bug cannot get error description when running OS command