Resolve ambiguity for creating directories