Fix a bug that caused wrong search for already shipped files, causing double-ships on day boundaries