make Makefiles work on systems without a rename command