Replace reading master pw from parameter by reading it in from stdin.