remove gsub in favor of builtin regsubst