SF bug #1457411, fix errors using variables that don't exist.

Rename file -> filename to be clear.

Will backport.
1 file changed