Fixed bug in `migrate up <file>` so it is portable