fixes makefile copying behaviour