Escape command substitution in logrotate script

* Since this section is being expanded, it
needs to be escaped
* replace backticks with dollar sign/parans
cause backticks are deprecated (and can't
be nested)