confighook mkdir fix