Restricted some permisive file permissions

This bug was detected by SensioLabs Insight (rule # 21-032)
Transformed the benchmark script into a proper console command

This improvement was proposed by SensioLabs Insight (rule # 24-038)