Fix for handling of virtual directories/applications in IIS