Fixed bug in status checking section of createServer script