SCUBA2: only retrieve input tag at end of all processing

Otherwise there is the risk that adding new functionality might miss
the fact that the current object contains a modified file rather than
the one to be analyzed...