Set root directory for each app.