fixed #1719
 - uses read-line for reading password, if no console is available