Fix gem building and rubocop cleanup