Update FindDependency

This is previous version i miss out the back to back checking, this is the corrected version.