fix bug. code assumed unix directory seperators like /, fix to support windows style like \