Fix variable assignment

Bash variables should be assigned without the '$' in front,
the current form is broken.
Merge pull request #6 from stackbuilders/fix_assignment

Fix variable assignment