I'd rather have used `line.split('/')` here.
Then you only support paths with two parts A/B or C/*.
So far, we only have these patterns in *.list file, but we could easily have more complex path with arbitrary number of sub folders, like A/B/C or D/E/*. I have hard time reading the bash script in Makefile that translates `GAIA_APP_CONFIG` to `GAIA_APPDIRS`, but it looks like we do support path with ore than two parts.
We should ideally support paths with arbitrary number of sub folders, or at least log a message for unsupported paths.
```
if (matches) {...}
else console.error("Unsupported path ", line, " in app list file:");
```