Correct, if the vent is clogged air can not get in or out of the vent.
If the vent is not clogged, as you drive the air will be pulled out of the black tank.
You notice the smell while driving or, when the fan is running.
Possibly something is blocking the vent that acts as a one way valve? Air can get in the vent but, not out.
Driving or running the fan causes a slight vacuum in the tank and the smell is possibly seeping out around the rubber seal on the toilet. Try resetting or replacing the rubber seal, maybe it's not seated correctly?
But I would start with checking the roof vent.
That's all the physics I can offer. :)