Fixed an error in the for loop of the script. Need ls before the
directory, so the script actually runs through all the directories
instead of looping on the path-string itself.