Cancel upgrade if $ZSH is not writable
from #2360