Fixed dir name in case of single file.