makefile: Fix chekcing for changes