Makefile: fix problem with out-of-tree builds introduced by 5013c09f