Show friendly error message when portable dir is not writable (closes #1110)
Merge pull request #1122 from andkit/fix-1110

Fix for issue #1110