Awright, the problem with the script is that the directory names have spaces in them so it tries to list each word separately...