pull_client: make a copy of environ