Fixing installer error on password save. $dir not defined, so defining it at the top of the file.
Merge pull request #285 from tdlm/master

Fixing installer error on password save. $dir not defined, so defining i...