Store path array in $paths.