IDEX-1193 delete empty folders, fix selecting source folders