Fix issue #838

Fixes detect_toolbars target configuration