fix $app_tmp folder creation and use it for "java.io.tmpdir"