[BUGFIX] RTE-API: correct check for backpath in writeTemporaryFile