fix mergeConfig with new ports

ping @creack @crosbymichael @makeusabrew @GaretJax

Fixes #2578