mkdir before compile-json