use `pwd is None`.  None is a singleton so check for identity.