Fix TEMPFILE definition in docker-autocommit.

tempfile command is provided by debianutis package, which is not available in non debian based systems, so TEMPFILE is not defined and produces an ambiguous redirect.
Merge pull request #1 from cperezcerrato/patch-1

changed the use of /bin/tempfile by bash random magic in order to minimize depends