Fix - file that does not exist not being removed

Changed to using hash returned from file_tmp table instead of getting a
new hash of the file. this means it will be removed from imports if for
some reason the file doesn't exist