Fixed weird restricted mode issues associated with rzsh, hopefully