Refactory bin/* utilities to use os.walk() instead of os.path.walk().