Only replace variables in connect commands