improved script, changed to sync with existing dir instead of downloading to the new one