Small script to split a directory containing many files into many subdirectories containing fewer files