Refactor dependencies management script, fix dash category bug