Changed entry removal to check os.path.isdir() because on Mac OS X os.remove() on directory gives another errno.
Changed entry removal to check os.path.isdir()
because on Mac OS X os.remove() on directory gives another errno.

akshell/tool