Creating a basic shell in C