buildsys: depend on check target instead of manual calling it