Measure Preserving Flows for Ergodic Search in Convoluted Environments