Removed useless debug printf in main.
cmdlifo now handles spawn commands better.
Fixed a segfault in cmdlifo.