BS: Removed non-POSIX dependency on 'expr index'