fixing port variable(s) when read from configuration file, replica set default

retrieving via getint rather than raw