Fix for bug #12588 (https://gna.org/bugs/index.php?12588).
This bug was reported by Tyler Reddy (treddy at dal dot ca).
The problem was that the results.read() user function was not handling the directory name being part
of the file name argument. This can now be handled.