Actually it does work. If you pass in the absolute path where it's wanting the relative path, it'll happily write to that absolute path.  That'll be better than what I had.