Minor fixes to how app is exported.