Port of the prefsCleaner.bat for anything(?) with a bash shell. First functional commit tested on a minimal Cygwin install.