Shell command Parser in C