Make sure we use integers for targetVersion and baseVersion.

Without this, _.max() will compare strings and migrations like 09-10.sql will never work