improve testing and testability

Initialise the vendor dir for dependencies and also assume that the first bootstap loaded is relative to the vendor directory for tests