fixed error in handling background request for sudo programs