Handled incomplete files. If the filename contains .part in the end, it assumes it is incomplete and tries to resume the download