Update halo_pipeline.sh to version that works with test files