Clean up backtick'd code to use $() syntax #6

The backquote (\`) is used in the old-style command substitution, e.g. foo=\`command\`. The foo=$(command) syntax is recommended instead. Backslash handling inside $() is less surprising, and $() is easier to nest. See http://mywiki.wooledge.org/BashFAQ/082