build-sys: fix MKDIR_P for recent automake
3 files changed