Update util to have dependencies and check for directories existence