use os tempdir for temp file creation

Create temp file in system temp dir to enable non root user to use jsdoc
(tested on linux debian)