Updated prepare.sh so that package names are monkey patched only if needed, thus avoiding unneeded auto rebuilds