Added LANG=C to password functions so that they work
on OSX and Linux