Update updater.py

added function for recursive directory checking