Fixed bug where build is always agains't default branch