Added FilesystemException to handle errors on local filesystem.
Added earlier permission checks in local filesystem before start download.
Merge pull request #1886 from phansys/local-fs-check

Added local filesystem permission checks for self-update