Fix variable assignment

Bash variables should be assigned without the '$' in front,
the current form is broken.