Don't trust the return value of mkpath()