Added ability to get the current environment name inside a migration.

This allows for a use case where the migration would need to differ
based on the environment.