getting the proper file system for deleting a path. fixes #295
and refactored files-related functions in a Files object instead of Helper which is now deprecated