Fixed dir recognition. Fixed nested dirs downloading.