json: fixing paths in output file