Used os.walk to recurse into folders

@Nostraa @ptressel 

Sorry for the trouble. I was having issues with rebasing a commit, but I think everything is good now.