Fix incorrect placement of manifest file and ensure ownership and permissions