Added is_IIS check. Props @westonruter