Update port_check.sh

Updated with a flexible timeout value - defaulted at 30 seconds