Dont use manager to decide where a dep was defined

Fixes #1396.