Create the /var/lib/puppet/sufact directory whenever the fact define is used. This means any code elsewhere to create that directory should be removed. (It was usually found in defaults.) Rewrite the fact define to use current coding style.