- Show hidden files in Finder
- Find and enter the folder Macintosh HD/etc
- If there is not a folder called paths.d, create it
- In the folder paths.d create and edit the file myfile, whose content will be the absolute paths of the target folders (one line each)