Microsoft has done a good job adding the functionality to re-ghost a modified page/file. Go to the URL below:
http://yoursharepointsiteurl/_layouts/reghost.aspx
Or alternatively you can access it from Sharepoint Designer 2010. Click on the site then on the ribbon click Reset to Template.
Cheers,
Tommy