Replace mkdir with mkdir_p