change only_if condition to properly test if dir with wildcard exists