Added possibility to specify a regex for folders to be synced.