Set application root properly.