using = instead of == for string comparison

Turns out not all shells consider == an equality operator
Merge pull request #1 from hallvors/bugfixing

using = instead of == for string comparison