Correctly handle Unix style has_prefixes in Windows