build-lcg: remove temporary file