replace some paths in Makefile from absolute to relative