Fixed - Windows folder separator bug.

There was a bug in get_all_paths function. The bug was related to finding improper paths by the function for Windows. This patch fixes this.