Consolidated checkFileSystemPermissions

Tossed it to the Utilities class to get it out of the SQLite and
FileSystem handlers so as to reduce duplicate code. Formatting.