Support directories in sync-all