Set environment variable correctly