Fix shell thingy
Some ridiculous micro-optimizations

I managed to shave off ~300ms from my Emacs load time! Whoopy!