- Don't fail if homedir or shell are not set (Bug 521438). - Fix crash when path to share is empty (Bug 524792).