Cleaning the computation of the ReferencesFile