Add MD5 alternative to directory hash calculation