Fix matching for volume paths in cp

Fixes #9787

Signed-off-by: Brian Goff <cpuguy83@gmail.com>