Improve `set <SETTING> +` user experience.

The tmpfile created now takes the name <SETTING>.$EXT.
$EXT is 'txt' by default, 'sh' for ShellCmd datatype,
the 'php' for PhpCode datatype.