Please use `this.promise_dirname` instead of `/tmp` in this script to ensure the script doesn't depend on `/tmp`