Bugfixes in sliceshell.py; thanks to Peter Gurzo for catching this bug.