Fix migrate_db check to work under Windows too