read_source cleanup

See https://github.com/bbatsov/rubocop/commit/82a45f89a773bded2bb382f7d2b6b667074c3349#commitcomment-3153975