Remove redundant /./ parts from pathnames in makefiles

This is mostly a cosmetic improvement for the quiet make output.