Enabled debug mode for silex app in upgrade.php only when the site is ru...

...nning in dev mode