Environment based .migrate

We ran into the issue of running multiple environments on the same machine (development, testing) and as the .migrate file was persisted between the two environments, the migrations wouldn't apply to the second environment.

So ... Here's a fix if you fancy!