Fix for upgrade errors when there is a permission problem
Fix for upgrade errors when there is a permission problem

Signed-off-by: Noteworthy Software, Inc <2dbc2fd2358e1ea1b7a6bc08ea647b9a337ac92d@noteworthysoftware.com>

mkress/SMF2.1,StealthWombat/SMF2.1-more-forkery,mkress/SMF2.1,margarett/SMF2.1,georaldc/SMF2.1,mkress/SMF2.1,margarett/SMF2.1,MustafaCan/SMF2.1,MustafaCan/SMF2.1,georaldc/SMF2.1,StealthWombat/SMF2.1-more-forkery