Reorganise the tempfiles