better path cmd handling for windows