Fix pub dependency script bug