fix handling of boolean env vars and log replSetStatus