We always try to create the directory where to store the json file, but when the filename is given directly, like in the bots, the current dir is used.
Created attachment 331721 [details] Patch
Committed r227194: <https://trac.webkit.org/changeset/227194>
<rdar://problem/36654407>