Correct some logic in commit 38daa7a9. The variable "file_in" did not exist in some places where the function was called from.