Fixed a problem with the file comparison.
Added md5 calculation to make comparisons more accurate.