Minor fix-ups for improved use of shared port. #3813

Most noteably, the default shared port id on windoes for the collector
was _<master pid> instead of collector_<master pid>.