Custom recursive mkdir to avoid anoying behavory where default mkdir with recursive=true doesn't apply mode