Sometimes $paths is only a scalar. Check first before treating it as a
list.
Merge remote-tracking branch 'origin/public/7.7' into public/10.0