fix 'eb --list-toolchains'

This fixes #674, after making sure the unit tests catch the bug.