Alastair's patch: Insert an application name into manifest if one does not exist already.