fixes #1719

This change fixes the problem, that in some environments System/console() might return null, so reading the password for deploying fails.
This is specially the case under cygwin.
The javadoc of System.console() mentions specifically, that it might return null in certain environments.