Ignore directories when checking POD encoding