You also have to create a new map.rwm file in data\world\maps\base. Rename your old copy in case anything goes wrong, delete map.rwm if you've left it in there, then start a new campaign. The new map.rwm will pick up the new hidden resources. Once the hidden resources are there, changes to units.txt and buildings.txt will be detected without having to start a new campaign.