Fixed bugs related to path related problems for windows.

Fixed bugs related to path related problems for windows.