Redmine#4683: skip directories when parsing

see https://cfengine.com/dev/issues/4683

Deal with directories cleanly when parsing, so `ignore_missing_inputs` is respected.