Fixed hash_func call in file.manage_file

this must be an old reference, this function was calling hash_func which was an undefined variable. I have made it create a temp file, then use the get_hash function to achieve the same outcome
Removing old comment