Fix the case where the file is not in the current directory.
Fix the case where the file is not in the current directory.

Discovered by:	Vladimir Kravchenko <jimson@mostcom.ru>
Pointy hat to:	des

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase