Creates temporary folder in a $temp_dir folder with name pattern defined by $template, and stores path to created folder in 'my_temp' variable.
$ my_temp_dir=$(mktemp -d --tmpdir=$temp_dir -t $template)