Fixed deployment script to include better options such as building config.js on fly and jsmin