Ignoring optionals if already installed

Fixes #1065