Switched from MD5 to SHA512 to avoid collisions

Changed file hashing from MD5 to SHA512 due to collisions
see: http://en.wikipedia.org/wiki/Comparison_of_cryptographic_hash_functions