Add folder information to reference apps (fix bug 872221)