Update filefuncs.c

Minor edit.  Changed the default file handler for fprintf() here so that it doesn't try and print an error message to a non-existing log file and segfault.