Update mirror.sh

bug fixes