make task name for write_juju_env match the registered task name