bin/caritas_functions.sh: Fix temp_file