[Fix] Make path building on windows behave the same as stock mono+glib.