Make resource definitions work from /vendor/, too

Change-Id: I59ac7b8f3e48d6098d53875abcb8811fc36f5892
Merge "Make resource definitions work from /vendor/, too"