Updated "can't read file" message to use the correct variable.

When given a non-existing file, a rather unhelpful error message was printed instead of the intended message.
This commit fixes that message so it shows up as intended.