shell.c path searching with stat() functionality added