Improved server check for --debug on command line.