fix addpath for different os