Fixed 2 Bugs

Bug 1: Slashes were wrong and didnt work in linux.

Bug 2: Wasn't resetting the log because it excluded the folder path.