Fixes prepublish script\n\nStrange behavior of prepublish script