Fix option flag naming for tap deps

Fixes #17866.