Improvements in controllers_to_twig.sh and views_to_twig.sh