Fix 'bad array subscript' on older version of bash in bash completion