When building classpaths, use target/classes if the dep has a known sourceDirectory