Apply a role in a specific country only

I want to apply the rule
highway=* & highway!=trunk & ref~‘\d\d\d\d’ {set highway=major}
in my lines file only when the highway in Thailand.
I thought that I could use mkgmap:country for that purpose, i.e.
highway=* & highway!=trunk & ref~‘\d\d\d\d’ & mkgmap:country=THA {set highway=major}
But it does not work: those highways do not change their type (the rule without a country works fine, but everywhere).
I downloaded the boundaries freshly from and unzipped them into E:\Maps\Raw\bounds.
The call to mkgmap is:
“C:\Program Files (x86)\Java\jre6\bin\java.exe” -Xmx1000m -ea -jar “C:\Program Files (x86)\OpenStreetMap\mkgmap-r2207\mkgmap.jar” --bounds=E:\Maps\Raw\bounds --latin1 --lower-case --name-tag-list=name:en,int_name,name --style-file=E:\Maps\Development\Thai\Style --family-name=BernieMapThai --route --location-autofill=1 --preserve-element-order --tdbfile --index --nsis 6*.osm.pbf
What’s wrong with that?

Try --location-autofill=bounds,is-in,nearest

Thanks for that hint. Among the many things I tried after posting my question, that eventually made it work.