fix java upstart issue and make node an python upstart generic