Added fallback options to find Apache process when not on port 80.

also used "$port" in some of the output, which was hardcoded "80" in places.