This needs double quotes `"` instead of simple quotes `'`, otherwise the bash variables aren't expanded.