Remove redundant /./ parts from pathnames in makefiles

This is mostly a cosmetic improvement for the quiet make output.
Merge pull request #261 from mstorsjo/make-remove-dot-dir

Remove redundant /./ parts from pathnames in makefiles