use old mkpath function
fix Makefile