finally settle on sh substring check that works on travis [publish]