Fixed order of build operations and ensure that the updated html files with the manifest are copied back to bundles