Fix UglifyJS builder in the face of VariantDir.