ExpandEnv looks for ${var} in s and replaces them with value of the corresponding environment variable.
It's not like os.ExpandEnv which handles both ${var} and $var.
$var is considered invalid, since configurations like password for redis/mysql may contain $.