lwindex: Fix handling of file path.