Fixed issues with bash branch loader