r3588: Set APP_DIR when rerunning configure, so that version extraction still