CSTP: fixed file check on download.