ESDEV-411. Fix Varnish bugs for 5.1. Fixed script handling, because wrong parameter was being passed.