Change file permission only on Windows and as a second chance attempt.
Add missing -e command line argument option
Fix no log output for some users
Determine untracked directories, and remove those as a whole rather
than tracking the individual untracked files they contain.