Fixed wrong magic comparition. See https://github.com/styx/grit/commit/edd549246fe2d30b5341847aaa271d57bd0f6677