fix: a js file which name `data.jsonable.js` should not be treated as JSON.
1. Make sure directories  of `logs` and `pods` exist before logging. 2. Refactor: put `startLogging` into Common.