variant scripts: quote variables, use $() instead of ``

1 job for topic/default/shellcheck-ci in 45 seconds