PHP class to interpolate and extract an apache virtual document root