Port isn't a top level variable

$::port didn't work in my environment, it will report successful on existing installs but actually be failing.