Used os.walk to recurse into folders

@Nostraa 

Sorry for the trouble. I was having issues with rebasing a commit so I just reset the staging branch and made a new PR.