isl_convex_hull.c: valid_direction: properly normalize valid direction