Fix json file path when launched from cronjob