Fix 'printf' special characters issue

This error was called when 'printf' printed the
currently processed file into a temporary file.  The
file name was printed 'as-is' without any modifier.

Now the script enforces the filename in '%s' to correctly
handle any special character