Fix migration revisions
Resolve DEV_PREFIX to a non-relative path in init_env.