uploadomneon: better handling of tmpdir issues