Add prefer-stable flag to pick stable package over unstable ones when possible