Bug 952497 - getPid in the rewritten install-gaia.js writes to a constant file name

https://bugzilla.mozilla.org/show_bug.cgi?id=952497

1. random temp file name for string pid output
2. get correct appName from manifest