Simple shell implementation in C for linux