Update envsh.c

Added functionality to handle when spaces occur. Also added functionality to handle built-in commands in the scanner