Updates complement.sh to read the ref from an environment variable (defaulting to master) when downloading a complement bundle for testing.