Make MappingsFromHostPaths use #each for a large array

* Was using #map, which would allocate a large array we didn't use