Fix: fail to get selenium running port

In my Centos 5.8, it always get empty when running "netstat -l | grep :4444". The reason is the netstat -l will return a alias port krb54 rather than 4444. So we should use netstat -ln. "-n": replace the alias name with number