When running the `jar` file using `java -jar my_app_name.jar`, the `$PROGRAM_NAME` is set to `<script>` instead of the main file name. I opened a ticket in Thor with more details https://github.com/erikhuda/thor/issues/742.