Replace bash-izm '==' operator with '=' for test(1)

'==' operator for test(1) is bash-izm and not portable.
'=' should be used instead for standard posix shell users, or such tests will always fail.