Fix for mktemp failure on osx

Closes-Bug: #1404422
Change-Id: I445c2a24850059897b4e76ff29ef77f3baf84021