fixed prepublish process for bin script