change get_cmd func, make cmd itself the first elements in argv linked list