handle a nil configfile
replset logic was reversed