Added checker for paths which works on both Windows and Linux

This PR includes a checker that fixes path problems like OS-specific separators, case-sensitive files and symlinks.
This is added mostly for compatibility with both windows and linux.
Was not aware of this, thought they are ordered by date of creation.
Fixed by creating temporary directories.