BashCommands.waitForPortFree: fix for centos