add stackIndex opt to specify the index of stack for getting file info

* add `stackIndex` opt to specify the index of stack for getting file info
* `util.format` add `%t` placeholder to call `util.inspect`
* Fix `util.format` stringify json `%j` (cycle call)