Make directory creation recursive