Fix password generation in install script

Extracted @grkvlt 's commit from https://github.com/apache/incubator-brooklyn/pull/225, to be merged immediately.