fixed clearing of temporary script files