You can indeed use masking on the Fake Stones shader. You would connect your mask into the Blend Shader input. You can use a procedural, image map, distance shader, or other node for masking. Easiest would probably be to use an Image Map with "Through Camera" projection and a mask based on a render of the scene.
- Oshyan