I actually found this a while ago when working on 871a70823e8ffa007d8b59e18122b5f5f173b6d4, when I was referring to KoJsonTrader to write the function findKritaPythonLibsPath I found that the code in KoJsonTrader lists a lot of redundant entries. It also doesn't skip . and .., thus creating a chance of scanning a wrong plugin directory outside the application.root.
This change fixes the issue and cleaned up the flow a little bit.