Fixes temporary file issue in pushtx endpoint