Fixed bug in bad argument (-g collision). Added check for virtualhost.