Fixed a bug where the build manifest was never written