shell.c redirector basic functionality working