[flmqtt] improve module naming logic