fix checks for YCP in automake generator (thanks to lslezak)