some small fixes for gulp

some clean up 

`script-config` is not guaranteed to be executed before `script-back`, which compiles both server and config `.ts` files. and that leads to missing config from the final `--production` build.