fixed the problem where an exception was thrown when no .pl file was
found.