Fix broken check for inc files