Retuns True if two paths compare the same. If ignorecase is False, the comparison is made case insensitive