refactor how uglify is called when not using multi process