Fix if directory exists