Replace \ with / when comparing with $docRoot

Windows uses backslashes in realpath