Resuming a session on a Windows machine

The previous version of the script had a bug that caused it to crash when loading the wave file during a resumed session on a Windows machine.  The script has been edited and sent to Jamie to be tested on a Windows machine.  I will wait to confirm the pull request and merge the changes until I've heard back from Jamie that this edit successfully fixes the bug.