Fix for upgrade errors when there is a permission problem

Signed-off-by: Noteworthy Software, Inc <online@noteworthysoftware.com>
Merge pull request #2495 from nwsw/upgradefix

Fix for upgrade errors when there is a permission problem