Fix to avoid repeated filenames and delete md5 hash -refs BT#8186