fixed logic of directory suffix making