Fix exporting the right path for the json file