[BUGFIX] Comment early return because $overlayPaths is undefined and always NULL
[BUGFIX] Swap array unique and reverse to have the path in right order
[BUGFIX] Use the right var for layoutRootPath