Ahaggar: various fixes for strchr logic

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>