[scripts] fix planahead, planahead_bitgen