Determine custom vendor dir if vendor-dir is added/changed

Fixed #1347