substrate/util: make sure dirs are 0755