I found this should be 
`s/directories/appDirs/g`, so I changed it.