fixed bug with checking if a file finished loading to HDFS.