Fixed handling of erronious preferences file
Speed up on excludion of files and folders