fix issue with sudo and prepublish task