Improve error output
The additional cerr output stream is now used if the pluginindex file could not be written.
Reviewed-by: Marco Martin