inlined mkpath for better control of error messages.
turn of strict when evaling perl code.