Fixed cmake find module to find dependencies correctly