upgrade browserify and work around substack/http-browserify#36
use a more robust method to find open ports