lib/util: use a helper variable in directory_create_or_exist()