Output spreadsheets only on PCs.

Previously the program tried to detect only Mac OS, which caused problems on linux.
Create PDB file when run in local mode.

Previously, PDB files were generated only in web mode. Now, when Query.Type == 'local' and Query.Name is specified, the PDB file is stored in the current working directory.`