Fix language detection

Signed-off-by: Benjamin Mosnier <bm@kappuccino.org>