modules.mk:  Add an extra '$' for .scaffold-dir in C++ implicit rule generation

* Prior to this, out of source builds were breaking because the $(@D)
  in the prerequisites list was being expanded by the eval.