move check if $PREV_VER_DIR is empty up a bit