def METHOD_NAME(self, *args, **kwargs):
    """
    Determine name of MotionCor2 binary to install based on CUDA version.
    """
    super(EB_MotionCor2, self).METHOD_NAME(*args, **kwargs)
    if not get_software_root('CUDA') and not get_software_root('CUDAcore'):
        raise EasyBuildError("CUDA(core) must be a direct (build)dependency of MotionCor2")
    for dep in self.cfg.dependencies():
        if dep['name'] == 'CUDA' or dep['name'] == 'CUDAcore':
            self.cuda_mod_name = dep['short_mod_name']
            self.cuda_name = os.path.dirname(self.cuda_mod_name)
            cuda_ver = dep['version']
            cuda_short_ver = "".join(cuda_ver.split('.')[:2])
            if (LooseVersion(self.version) >= LooseVersion("1.4")):
                self.motioncor2_bin = 'MotionCor2_%s_Cuda%s' % (self.motioncor2_verstring, cuda_short_ver)
            else:
                self.motioncor2_bin = 'MotionCor2_%s-Cuda%s' % (self.motioncor2_verstring, cuda_short_ver)
            break