fix assign path
Merge pull request #1186 from carlocapocasa/master

lang: ensure SoundFile:openWrite updates its path variable