Use appDir instead of rootDir