Fix http directory item detection for items with querystring