Make check_uptodate compatible with BSD shells

BSD mktemp requires a template for the file/directory name.
GNU mktemp supports the option, but is not mandatory.

This change passes in the template, so that the check_uptodate.sh is
more compatible across different environments.

Change-Id: Id4abb92054363416272f583600e3d8ff2a9f9d42
Closes-Bug: 1246858
Merge "Make check_uptodate compatible with BSD shells"