use $(...) notation instead of backticks in shell commands

this is more legible and less fragile