fixes improper service resource refs in agent recipe

We should use the variable set at the beginning of the script and not a hard-coded string.
I think this was just a small oversight.