fix log directory in jvm_memory_os.erb, add custom environment variables to run.erb