made sure the tmp dir gets created and moved java_opts to the correct spot