The effect of external intermittency on the scaling and self-similarity of structure functions in turbulent shear flows