I don't think we need to explicitly check for \#MIRROR.  prepare.sh won't run properly without being installed by main.sh anyway.