anchor.diff:          fi
           ln -s "$OLD_CURRENT_TARGET" "$CURRENT_DIR"
       fi
  +}
  +
  +function clean_out_old_releases(){
  +    [ -n "$USE_FLAT_RELEASE_DIRECTORY" ] && return
  +    
  +    while [ $(ls -tr "${RELEASES_DIR}" | wc -l) -gt 2 ] ; do
  +        OLDEST_RELEASE=$(ls -tr "${RELEASES_DIR}" | head -1)
  +        log "Deleting old release '${OLDEST_RELEASE}'"
  +        rm -rf "$OLDEST_RELEASE"
  +    done
   }
   
   function print_usage(){
  
positive.code:             -i)
                  shift;
                  export INSTALL_ROOT="$1"
                  shift;;
              -o)
                  shift;
  
negative.code:         log "Installation failed."
          exit 1
      else
          clean_out_old_releases
          log "Installation complete."    
      fi
  }
  