Perhaps your problem is you have the path enclosed in curly braces. With that I think your variable is not getting a value substituted for it so the path when grm gets it actually has the variable name and not the numeric value associated with the variable name.
Have you tried quote instead of curly brace?
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.