Added port checker function to bash_profile