make dependencies check work even with -j make invocation