Fixes and improvements in application manifest processing