Debug environment variable issues