Restore POSIX shell compatibility

String comparison using double equal signs doesn’t work in POSIX shells, see http://stackoverflow.com/questions/1089813/bash-dash-and-string-comparison.
Merge pull request #4 from SonicHedgehog/posix-compatibility

Restore POSIX shell compatibility