try to be safer about running grunt in prepublish