Update bootstrapping code so it works with composer

Change-Id: I532e14c6007c7cd5c6adfd54d547dd3232e01a7e