Fix crashing with local components

Pass in correct context to the paths builder fixing crashing when `paths` are used in `component.json`