Sniff out the custom vendor path if we're a part of a Composer project

See #1434