Fixed check for the existence of previous error log files.

The '-f' parameter of test ie '[' expects a single file and seems to
error out on wildcards.
Solution found at
http://stackoverflow.com/questions/6363441/check-if-a-file-exists-with-wildcard-in-shell-script