Avocado utils work

Some refactors to the avocado.utils namespace. I found them convenient for the work I'm doing.
OK, useful as it creates dir if not exists and there's a lot of repetitions of this in our code.