[erlang] Not use --suffix option of mktemp
[erlang] Not use --suffix option of mktemp

Summary: The --suffix option of mktemp is not available on macos. Changed to rename the temp file created by adding the extension.

Reviewed By: skcho

Differential Revision: D29587977

fbshipit-source-id: b7a5adda8

facebook/infer,facebook/infer,facebook/infer,facebook/infer,jvillard/infer,jvillard/infer,jvillard/infer,facebook/infer,jvillard/infer,facebook/infer,jvillard/infer,jvillard/infer,facebook/infer,jvillard/infer