shell.c: improve readabily in enviroment variables handling