Apply Windows fix to BASE == DOCUMENT_ROOT

DOCUMENT_ROOT on Winodws is separated by / instead of \ as __DIR__
is. Do necessary conversions.