Strictly check version numbers in migrations.

Improve version number discovery in schema and migration files so that a blank `schema.rb` (with version `0`) does not fail the migration check.

This code assumes schema version numbers always match the pattern `/\d{14}/`.

Fixes #162