Expand environment variables in program names.