thx for your suggestion. I found that RulesCompiler.GetModuleFilename() works well in latest release version.