FormulaInstaller: factor out readline workaround