mat_specular 0 ; buildcubemaps ; map [name] ; mat_specular 1
I was told you need to reload all the materials, either by switching to a different map, then coming back, or doing the reloadallmaterials command.
I'm not 100% sure on that, but this was the list of commands I was given to build cubemaps when compiled in LDR