Fix for highlight bug when multiple layers are on
Fix for highlight bug when multiple layers are on

The results-list should have built for multiple layers instead
of just the first. This change converts the single layer check
to a loop.

Also, a fixed required to prevent issues with the `fs` module.

refs: #576, #577

geomoose/gm3,geomoose/gm3,geomoose/gm3