Drupal not detecting the correct version number of a module? I am trying to transfer a site over, and run update.php.

Drupal is telling me that my system and menus modules are out of date. This is not the case - they're both up-to-date, in fact I downloaded the most recent ones and uploaded them to my public_html/sitename/modules folder.

Where is the version number stored, so that I can force Drupal to recognize that they are the correct module versions that Drupal is looking for?

Specifically for the menu and system modules.

This is in D7.
As Jimajamma in comment #2 pointed out it is worth to check whether there are older versions in renamed directories.

I had the same problem and error message with modules - after removing the backup below "sites/all/modules/old" the dependency check error in update.php was gone.