fall back to old behavior if stdlib fact puppet_vardir isnt available