Fix crash with portupgrade -b when PKG_BACKUP_DIR and PKG_PATH are not defined