appliance: change the way we find git branch in build.sh

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>