Fix incorrect strcmp() return value check

It seems like the check for when `path` is `/dev/graphics/galcore` is inverted from what it should be.