shell.c: improve readabily in environment variables handling