modified --dirs handling to support multiple values