lib/util: do an early return on error directory_create_or_exist()