iterator and fixes in extract dmg for linux