Converted index() into strchr() which is no Linuxism anymore and also