fix bug with -setpath replace- on windows