Change getWritablePath to always return exe folder in Windows.
Fix string encoding and path separator.