fix update available port on linux