Convert backtick commands to Cask::SystemCommand.run

Closes #4971
Merge pull request #5623 from federicobond/remove-backtick-commands

Convert backtick commands to Cask::SystemCommand.run