Fix language detection (#4)