Fixes #4757: fixed paths in advanced app init