Fix matching for volume paths in cp

Fixes #9787
The report was about binds, but the issue is both. I can add a test for both