Sorting all files into proper folder structure