Handle Windows slashes in paths