Fix issue #5 (windows exception) by conditionally specifying the script name