remove unused function
Correctly find local components, fixed #5
Merge pull request #6 from Swatinem/master

Correctly find local components, fixed #5