Fixed error in function that gets file status.
In the linux version of the code (not windows), forgot to declare a variable.