replace : with pathsep for windows