The only wrinkle is that you'll need to add an indicator for whether each MD5 is salted or not, since you'll have a mix of both for a while.
For a minor loss of security, you can check each password salted and unsalted and if either one hits, accept the login.