fix path separator replacing