FOFDispatcher::onBeforeDispatchCLI

Sets up some environment variables, so we can work as usually on CLI, too.