Use the right variable to parse for IPv6 address

When parsing for rsync address, the variable being parsed was 'env.host' instead of local 'host' which hold the actual value to be used.