You are absolutely correct there. Take an old, but solid car. If you rebuild it, there will be a little electricity for the power equipment, some fossil fuels for the rubber and fluids, and if you use state of the art paint and other chemicals, a VERY small VOC out put.
Now, make a battery for an electric vehicle. You mine the rare earth minerals with heavy equipment. (They are called RARE earth for a reason) Once they are done blowing soot out the exhaust, you refine them. More pollution. Then the minerals are shipped via diesel powered ship to Asia where the construction begins. More soot from smoke stacks in a very polluted area and lots of power to make the battery.
Now the completed battery goes back on a diesel powered ship for transport to Japan or the U.S. All of this so someone can feel righteous that they are saving the environment.
Total cost for rebuilding in energy, in 2010 when I saw the study, was $6.10. Total energy cost for a battery, not counting the minerals and construction, $214.78. This doesn't count the coal fired power plant to charge the electric car. Yes there are other types of power plants, but coal and natural gas make most of the electricity in the U.S..