set the @component only if .add-on is found
Merge pull request #24 from barelyknown/component-setting-error

set the @component only if .add-on is found