restore shellslash state properly

trivial change for a trivial bug