Add getenv support to the Java payload

This will bring this meterpreter in line with the other meterpreter
payloads so that the getenv feature works consistently across them.