add and improve bash script for symfony2