fixing mkdir to mkdir_p error