ISPN-4666 Remove getopt dependency from server/core