Use Makefile realpath instead of shell commands