ZOOKEEPER-1301. backport patches related to the zk startup script from 3.4 to 3.3 release (Giridharan Kesavan via phunt)