fixed path conversion for dmake and perl.