Add path shimming to extend.sh

[#83076478]