Revert "Revert "Use Dir.mktmpdir""
Revert "Revert "Use Dir.mktmpdir""

This reverts commit 34e16110e0fbe29c40fe984d4715ca5dcdaef508.

jirutka/gitlabhq,jirutka/gitlabhq,stoplightio/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,stoplightio/gitlabhq,mmkassem/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,stoplightio/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,axilleas/gitlabhq,iiet/iiet-git,iiet/iiet-git,iiet/iiet-git,dreampet/gitlab,axilleas/gitlabhq,dreampet/gitlab,mmkassem/gitlabhq,iiet/iiet-git,axilleas/gitlabhq