Fixed inability to regenerate build under Windows:
- fixed windows paths to unix paths, so that slash can be used in all comparisons
- simplified algorithm by using recursive directory iterator
Merge pull request #1163 from zerkella/1.3.0

Fixed inability to regenerate build under Windows: