Fixed Bug #2

Previously we used .replace to fix path separators, but the limitation was that it only replaces the first occurrence. We fixed it by exploding the string, and joining with the required path separator.