Add components to the list of ignored directories in search
Avoid use of __dirname and use filesystem.getScriptedHome instead.