farm: strip branch line
farm: fix changing dir