Disable console backend if oldshell is used

This is a redux of #138 with some changes of my own.