clean up shell code
Signed-off-by: Michael Weber <michael@xmw.de>