replaced the mktemp call to a generic function GenerateTempName
add function in lib/global-functions.sh; and modified script scripts/init/default/03_prepare_tmp_build_area.sh