fixed server check for Ubuntu