Fix another corner case with building recipes for core modules