The golden output contains "/local/test1/file5" which appaears to be in your test fs. You need to do something like sed -e "s,$SCRATCH_MNT,SCRATCH_MNT,g" or sed -e "s,$TT_MNT,TEST_MNT,g" to make the test portable. This probably applies to the other tests as well.