It's probably just as likely to be the weather stripping on the windshield...and that's not usually obvious
ETA: I think that most car carpet is manufactured to resist mold these days as long as it's not excessive and prolonged. Most moldy smells in a car come from the A/C