vdir variable points to sites-available

vdir is the wrong directory to use for this lookup, we should declare another variable that points to 'sites-enabled' you may have a server with an available site that isn't enabled.