Makefile: Introduce and use some improved pathname manipulation functions.