Fix log-in with System.getProperties for console application