chmod and sed commands only executing after symfony is installed