Fix erroneous syntax in shell logout.

The error in syntax was causing an error on logout.