Fixing port 8080 check to be more resilient