Replace Windows separators function

Path separators should be adapted using Qt function
toNativeSeparators(). It also provides safety and flexibility for
future. Got no Qt nearby, code needs to be tested.