fix PBSPro bug discovered with tests
update tests and fix bug discovered with tests
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