remove unnecessary mkpath