Implemented autorepair flag.

- (re)creates new/cur/tmp folders if necessary
- Some SCMs like git do not track empty folders