added a command to output the latest version

This is useful when rolling back a release that included migrations.

```
cd $OLD
VERSION=`php ... migrations:latest`
cd $NEW
php ... migrations:migrate $VERSION
```