Thanks for this bug fix. My test site also runs on an non-standard port.

Would be nice to see this simple fix incorporated in the published script.