Fix improper gem names when checking the dependencies