Scripted Metric Aggregation

When I try to use Scripted Metric Aggregation I've the error message : Unable to find on disk script.
However my script files are in /etc/elasticsearch, where I put my others scripts files that I use with success for script fields or for cardinality aggregations. And my scripts have the groovy extension.
How to do ?

my query is :
"query" : {
"match_all" : {}
},
"aggs": {
"profit": {
"scripted_metric": {
"init_script_file" : "init_script_file",
"map_script_file" : "map_script_file",
"combine_script_file" : "combine_script_file",
"reduce_script_file" : "reduce_script_file"
}
}
}

and my script files follow : https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html