Changed logic to create synced/... directory structure recursively.