Validate mkdir_p param