changed equality operator for compatibility with /bin/dash