removed unnecessary include
basic fixed for ticket #319
added missing throw
hack for dealing with the different stat versions
fixed for dealing with the different versions of ls
added missing configuration keys