Convert Pathname instance to string as a command line parameter
Clear old data correctly even if droonga-engine is running as a service