[FIX] addons: fixed cross-platform compatibility for get_module_resource()