added functionality to enable user to provide java options via a env variable