anchor.diff:  url="<%= locals[:download_url] %>?v=${version}&prerelease=${prerelease}&p=${platform}&pv=${platform_version}&m=${machine}"
   
   if [ "x$TMPDIR" = "x" ]; then
  +  tmp="/tmp"
  +else
     tmp=$TMPDIR
  -else
  -  tmp="/tmp"
   fi
   
   # secure-ish temp dir creation without having mktemp available (DDoS-able but not expliotable)
  
positive.code:     "sles") rpm_filename ;;
      "fedora") rpm_filename ;;
      "solaris2") svr4_filename ;;
      *) shell_filename ;;
    esac
  fi
  
negative.code: elif [ "x$os" = "xFreeBSD" ]; then
    platform="freebsd"
    platform_version=`uname -r | sed 's/-.*//'`
  elif [ "x$os" = "xAIX" ]; then
    platform="aix"
    platform_version=`uname -v`
    machine="ppc"
  fi
  
  if [ "x$platform" = "x" ];
  