mod/reader fix undefined variable $bar in upgradelib.php when upgrading via CLI