Adapted MantisEnv and MantisFileWriter to new, backwards-compatible, Monarch interface.