ws: use mkstemp() rather than mktemp()

Closes #588

Signed-off-by: Stef Walter <stefw@redhat.com>
 * Whitespace fix