Resolving path folder detection issue.