appliance: fix branch finding method from e16414e even Junio can be wrong

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