Made findFfg cmake script able to distinguish between debug and release.