Adding correct handling of branches in boot

The boot process was only capable of booting the master branch environment

Change-Id: Ie451a70658cbc92ea3fc715c6347959972fc58b3