Fix WinFile::currentPath method

* Freeing the buffer within WinFile::currentPath led to invalidating
the memory holding the return value (path).
  This resolves the unit test failure of RenderWindowTest::SetIcon.

* Remove const keyword from ::currentPath return value (const has no
effect on pass by value)