Ultrasonic Flow Measurement for Pipe Installations with Non-Ideal Conditions