don't crash CLI tools when trying to display the 'clear duchain cache?' warning, fallback to plain CLI in/out
note: yes, this can be called a hack or dirty workaround. but at least it works. feel free to clean it up and make it reusable for other parts.