added logic to prevent the overwrite of postmirror.sh